import request from '@/utils/request'

// 查询AI聊天列表
export function listRing_device_aichat(query) {
  return request({
    url: '/ring/ring_device_aichat/list',
    method: 'get',
    params: query
  })
}

// 查询AI聊天详细
export function getRing_device_aichat(id) {
  return request({
    url: '/ring/ring_device_aichat/' + id,
    method: 'get'
  })
}

// 新增AI聊天
export function addRing_device_aichat(data) {
  return request({
    url: '/ring/ring_device_aichat',
    method: 'post',
    data: data
  })
}

// 修改AI聊天
export function updateRing_device_aichat(data) {
  return request({
    url: '/ring/ring_device_aichat',
    method: 'put',
    data: data
  })
}

// 删除AI聊天
export function delRing_device_aichat(id) {
  return request({
    url: '/ring/ring_device_aichat/' + id,
    method: 'delete'
  })
}
